package org.truenewx.tnxjee.repo.jdbc.exception;

import org.truenewx.tnxjee.core.Strings;

public class JdbcNonExistentUserException extends RuntimeException {

    private final String host;
    private final String username;

    public JdbcNonExistentUserException(String host, String username) {
        super("database user '" + username + "'@'" + host + "' does not exist");
        this.host = host;
        this.username = username;
    }

    public String getHost() {
        return this.host;
    }

    public String getUsername() {
        return this.username;
    }

    public String getUser() {
        return Strings.SINGLE_QUOTES + this.username + "'@'" + this.host + Strings.SINGLE_QUOTES;
    }

}
